﻿using CPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPFUI.IControl
{
    public class MessageModel: CpfObject
    {
        /// <summary>
        /// 是否已读
        /// </summary>
        public bool IsRead
        {
            get { return GetValue<bool>(); }
            set { SetValue(value); }
        }
        /// <summary>
        /// 信息内容（可以是文本，图片，语音等消息）
        /// </summary>
        public object Information
        {
            get { return GetValue<object>(); }
            set { SetValue(value); }
        }
        /// <summary>
        /// 消息类型
        /// </summary>
        public EMsgType MsgType
        {
            get { return GetValue<EMsgType>(); }
            set { SetValue(value); }
        }
        /// <summary>
        /// 消息时间
        /// </summary>
        public DateTime DateTime
        {
            get { return GetValue<DateTime>(); }
            set { SetValue(value); }
        }
    }
}
